package com.springboot.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

/**
 * @author wubc683
 * @desc 自定义动态权限
 * @date 2021-08-17 15:58
 */
//@Data
//@AllArgsConstructor
//public class CustomGrantedAuthority implements GrantedAuthority {
//    private String url;
//    private String method;
//
//    @Override
//    public String getAuthority() {
//        return this.method + ":" + this.url;
//    }
//}